package org.jeecg.modules.monitoring.j_monitoring.service;

import org.jeecg.modules.monitoring.j_monitoring.entity.MDailyInspection;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.monitoring.j_monitoring.entity.MDailyInspectionFile;
import org.jeecg.modules.monitoring.j_monitoring.entity.MDailyInspectionDTO;

import java.util.List;

/**
 * @Description: 日常巡检
 * @Author: xiaoyq
 * @Date:   2023-10-10
 * @Version: V1.0
 */
public interface IMDailyInspectionService extends IService<MDailyInspection> {
    /**
     * 根据时间区间获得日常巡检列表
     * @param startTime
     * @param endTime
     * @return
     */
    List<MDailyInspection> getListByTime(String startTime, String endTime);

    List<MDailyInspectionFile> getImageList(String parentId);

    List<MDailyInspectionDTO> getTodayInspection(String userId);

    List<MDailyInspectionDTO> getPlanInspection(String userId);

    int saveTodayInspection(MDailyInspectionDTO[] dataList);
    List<MDailyInspectionFile> getFileListById(String id);


}
